package xy.log.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xy.log.annotation.Log;
import xy.log.constant.BusinessTypeEnum;

@Slf4j
@RestController
public class TestController {

    @Log(title = "测试呢",businessType = BusinessTypeEnum.INSERT)
    @GetMapping("/saveLog")
    public void saveLog(){
        log.info("我就是来测试一下是否成功！");
    }

    @Log(title = "删除",businessType = BusinessTypeEnum.DELETE)
    @GetMapping("/deleteLog")
    public void deleteLog(){
        log.info("我就是来测试一下是否成功！");
    }

}
